import { toSuccess, useEntityManager } from "@sker/core"
import { AutoUser } from "@sker/entities"


export default async () => {
    const userList = await useEntityManager(async m => {
        return await m.find(AutoUser, { order: { create_date: 'desc' }, select: { username: true, mobile: true, realname: true, max_count: true, device_count: true } })
    })
    return toSuccess(userList)
}
